﻿using BizUserDALEntities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BizUser.Search
{
    public partial class SearchListing : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        protected void btnSearch_OnClick(object sender, EventArgs e)
        {
            trSearchItems.Visible = true;
            grdSearchResults.DataSource = GetSearchResults();
            grdSearchResults.DataBind();
        }
        public List<BizInfo> GetSearchResults()
        {
            List<BizInfo> lstBizInfo = new List<BizInfo>();
            lstBizInfo.Add(new BizInfo { BizID = 1, Title = "Title1", AskingPriceLow = new System.Data.SqlTypes.SqlMoney(100), AskingPriceHigh = new System.Data.SqlTypes.SqlMoney(200) });
            lstBizInfo.Add(new BizInfo { BizID = 2, Title = "Title2", AskingPriceLow = new System.Data.SqlTypes.SqlMoney(130), AskingPriceHigh = new System.Data.SqlTypes.SqlMoney(200) });
            lstBizInfo.Add(new BizInfo { BizID = 3, Title = "Title3", AskingPriceLow = new System.Data.SqlTypes.SqlMoney(100), AskingPriceHigh = new System.Data.SqlTypes.SqlMoney(500) });
            return lstBizInfo;
        }

        protected void lbDetail_Click(object sender, EventArgs e)
        {

        }
    }
}